<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>zuqiu.cc加载中...</title>
    <style>
        /* 整个页面居中显示 */
        html,
        body {
          margin: 0;
          padding: 0;
          height: 100%;
          background: #f9f9f9;
          display: flex;
          align-items: center;
          justify-content: center;
          font-family: Arial, sans-serif;
        }
        /* 外层容器 */
        .loader-wrapper {
          text-align: center;
        }
        
        .brand-logo {
          font-size: 32px;
          font-weight: bold;
          color: #e74c3c;
          margin-bottom: 20px;
        }
        
        .loader-container {
          position: relative;
          width: 150px;
          height: 150px;
          margin: 0 auto;
        }
        
        .loader-svg {
          width: 100%;
          height: 100%;
          transform: rotate(-90deg);
        }
        
        .loader-bg {
          fill: none;
          stroke: #eee;
          stroke-width: 10;
        }
        .loader-progress {
          fill: none;
          stroke: #e74c3c;
          stroke-width: 10;
          stroke-dasharray: 439.82; 
          stroke-dashoffset: 439.82;
          animation: progressAnimation 1s linear forwards;
        }
        @keyframes progressAnimation {
          to {
            stroke-dashoffset: 0;
          }
        }
        
        .countdown-text {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          font-size: 24px;
          color: #333;
        }
        .hint-text {
          margin-top: 20px;
          font-size: 18px;
          color: #666;
        }
        
        #jump-button {
          margin-top: 20px;
          padding: 8px 16px;
          font-size: 16px;
          cursor: pointer;
          background: #e74c3c;
          border: none;
          color: #fff;
          border-radius: 4px;
        }
        #jump-button:hover {
          background: #c0392b;
        }
    </style>
</head>

<body>
    <div class="loader-wrapper">
        <div class="brand-logo">zuqiu.cc加载中</div>
        <div class="loader-container"> <svg class="loader-svg" viewBox="0 0 150 150">
                <circle class="loader-bg" cx="75" cy="75" r="70"></circle>
                <circle class="loader-progress" cx="75" cy="75" r="70"></circle>
            </svg>
            <div class="countdown-text" id="countdown-text">0</div>
        </div>
        <div class="hint-text">精彩直播正在加载，请稍候...</div> <button id="jump-button">立即跳转</button>
    </div>
    <script>
        // live03
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?4ab742640c51e4122c1faa005244dc3f";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
            
        const targetUrl = "https://zuqiu40.app";
        const duration = 1000; // 1秒
        const countdownText = document.getElementById("countdown-text");
        const startTime = performance.now();
        
        function updateCountdown() {
          const elapsed = performance.now() - startTime;
          const percentage = Math.min(
            Math.floor((elapsed / duration) * 100),
            100
          );
          countdownText.textContent = percentage;
          if (elapsed < duration) {
            requestAnimationFrame(updateCountdown);
          }
        }
        requestAnimationFrame(updateCountdown);
        
        document.querySelector(".loader-progress").addEventListener("animationend", () => {
            window.location.href = targetUrl;
          });
        
        document.getElementById("jump-button").addEventListener("click", () => {
          window.location.href = targetUrl;
        });
    </script>
</body>

</html>